projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e77eda
)
(grep-regexp-alist): Match columns and column ranges, if present.
author
Daniel Pfeiffer
<occitan@esperanto.org>
Fri, 18 Jun 2004 23:01:30 +0000
(23:01 +0000)
committer
Daniel Pfeiffer
<occitan@esperanto.org>
Fri, 18 Jun 2004 23:01:30 +0000
(23:01 +0000)
lisp/progmodes/grep.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/grep.el
b/lisp/progmodes/grep.el
index aa81f8aa770b45794f1173a3ecf7e23f2c251960..aa9a50a25804361fe57246bf5bdf6f976a4f4667 100644
(file)
--- a/
lisp/progmodes/grep.el
+++ b/
lisp/progmodes/grep.el
@@
-216,7
+216,7
@@
Notice that using \\[next-error] or \\[compile-goto-error] modifies
`complation-last-buffer' rather than `grep-last-buffer'.")
(defvar grep-regexp-alist
- '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)
[:) \t]" 1 2
)
+ '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)
\\([:) \t]\\)\\(?:\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?\\3\\)?" 1 2 (4 . 5)
)
("^Binary file \\(.+\\) matches$" 1 nil nil 1))
"Regexp used to match grep hits. See `compilation-error-regexp-alist'.")